<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
	/*!* 表格样式 *!*/

	/*.table>tbody>tr>td {*/
		/*border: 0px;*/
		/*text-align: center;*/
	/*}*/

	/*.bootstrap-table .table thead>tr>th {*/
		/*text-align: center;*/
	/*}*/

	/*!*.table thead {*!*/
		/*!*background: #ebeaea;*!*/
	/*!*}*!*/
	.table tbody tr td{
		vertical-align: middle;
	}
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="agent:agent:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
							<button shiro:hasPermission="agent:agent:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
							<a shiro:hasPermission="agent:agent:add" type="button" class="btn  btn-primary"
							   th:href="${#httpServletRequest.getContextPath()}+'/agent/agent/exportAgent'">
								<i class="fa fa-download" aria-hidden="true"></i>模板
							</a>

							<button shiro:hasPermission="agent:agent:add" type="button" class="btn  btn-danger"
									onclick="agentImport()">
								<i class="fa fa-upload" aria-hidden="true"></i>导入
							</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="searchName" type="text" class="form-control"
								placeholder="经销商名字">
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
				var s_status_h = 'hidden';
                var s_address_h = 'hidden';
			</script>
		</div>

	<div>
		<script type="text/javascript">
            s_address_h = '';
		</script>
	</div>

		<div shiro:hasPermission="agent:agent:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="agent:agent:remove">
			<script type="text/javascript">
                s_status_h = '';
			</script>
		</div>
		<div shiro:hasPermission="agent:agent:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/agent/agent/agent.js" th:src="@{/js/appjs/agent/agent/agent.js}"></script>
</body>
</html>